// pages/diseases/diseases.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    historyTags: ['糖尿病性视网膜病变', '葡萄膜炎', '糖尿病性白内障'],
    hotTags: ['糖尿病肾病', '糖尿病足', '糖尿病心血管并发症', '糖尿病性脑血管病', '糖尿病神经病变'],
    diseases: [{
      name: '糖尿病肾病',
      nums: 111
    }, {
      name: '糖尿病性视网膜病变',
      nums: 95
    }, {
      name: '葡萄膜炎',
      nums: 41
    }, {
      name: '糖尿病性白内障',
      nums: 29
    }, {
      name: '糖尿病足',
      nums: 21
    }, {
      name: '糖尿病心血管并发症',
      nums: 18
    }, {
      name: '糖尿病性脑血管病',
      nums: 10
    }, {
      name: '糖尿病神经病变',
      nums: 7
    }, ],
    normal: [
      {
        name: '感冒',
        nums: 233
      },
      {
        name: '鼻炎',
        nums: 215
      },
      {
        name: '高血压',
        nums: 177
      },
      {
        name: '湿疹',
        nums: 147
      },
      {
        name: '脱发',
        nums: 112
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  onComfirm(e) {
    const text = e.detail.text
    console.log(text)
    wx.navigateTo({ url: '/pages/disease-detail/disease-detail?name='+ text })
  },

})